const storageKey = 'WALLETCONNECT_DEEPLINK_CHOICE'

export function setWalletConnectDeepLink({ mobileUri, name }: { mobileUri: string; name: string }) {
  localStorage.setItem(
    storageKey,
    JSON.stringify({
      href: mobileUri.split('?')[0],
      name
    })
  )
}

export function clearWalletConnectDeepLink() {
  localStorage.removeItem(storageKey)
}
